package com.ws.common.util;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;

public class SubjectUtils {
    public static Object getValue(String key){
        Subject subject=SecurityUtils.getSubject();
        return subject.getSession().getAttribute(key);
    }

    public static void SetValue(String key,Object value){
        Subject subject=SecurityUtils.getSubject();
        subject.getSession().setAttribute(key,value);
    }
}
